package com.dzu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author by ZhaoDong
 * @Classname Catelog2Vo
 * @Description 2级分类vo
 * @Date 2021/6/19 14:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2Vo {
    /**
     * 1级分类id
     */
    private String catalogId;


    /**
     * 三级子分类
     */
    private List<Catelog3Vo> catelog3List;

    private String id;
    private String name;


    /**
     * 三级vo内部静态类
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catelog3Vo{
        /**
         * 父分类 2级id
         */
        private String catelog2Id;
        private String id;
        private String name;
    }
}
